Skip to content

Support monorepo projects that use npm workspaces#266

Open
Subv wants to merge 1 commit intojdanil:masterfrom
Subv:patch-1
Open

Support monorepo projects that use npm workspaces#266
Subv wants to merge 1 commit intojdanil:masterfrom
Subv:patch-1

Conversation

@Subv
Copy link

@Subv Subv commented Oct 1, 2023

When run in a monorepo, the npm ls command lists only the local packages as top-level dependencies, and does not automatically hoist the sub-dependents.

This change makes it so that if a local package is detected (the resolved location starts with file:) then the dependents of that package are recursively added to the top level dependencies.

When run in a monorepo, the `npm ls` command lists only the local packages as top-level dependencies, and does not automatically hoist the sub-dependents.

This change makes it so that if a local package is detected (the resolved location starts with `file:`) then the dependents of that package are recursively added to the top level dependencies.
@Subv Subv requested a review from jdanil as a code owner October 1, 2023 17:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant